package elitech.vietnam.weatherfashion.dto;

import java.util.Date;

import com.google.gson.annotations.SerializedName;

import elitech.vietnam.weatherfashion.ultilities.Utilities;

public class MemberDTO {

	private int id;
	@SerializedName("mem_id")
	private String memberUsername;
	@SerializedName("mem_pswd")
	private String memberPassword;
	@SerializedName("mem_name")
	private String memberName;
	@SerializedName("mem_pic")
	private String memberPic;
	@SerializedName("mem_profile")
	private String memberProfile;
	@SerializedName("mem_joinday")
	private String memberJoinDayString;
	private Date memberJoinDay;
	private int status;
	@SerializedName("mem_area")
	private String memberArea;
	@SerializedName("gcm_id")
	private String gcmId;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getMemberUsername() {
		return memberUsername;
	}

	public void setMemberUsername(String memberUsername) {
		this.memberUsername = memberUsername;
	}

	public String getMemberPassword() {
		return memberPassword;
	}

	public void setMemberPassword(String memberPassword) {
		this.memberPassword = memberPassword;
	}

	public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

	public String getMemberPic() {
		return memberPic;
	}

	public void setMemberPic(String memberPic) {
		this.memberPic = memberPic;
	}

	public String getMemberProfile() {
		return memberProfile;
	}

	public void setMemberProfile(String memberProfile) {
		this.memberProfile = memberProfile;
	}

	public Date getMemberJoinDay() {

		if (memberJoinDay == null)
			memberJoinDay = Utilities.parseDateFromStringFormat(
					memberJoinDayString, "yyyy-MM-dd hh:mm:ss");
		return memberJoinDay;
	}

	public void setMemberJoinDay(Date memberJoinDay) {
		this.memberJoinDay = memberJoinDay;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getMemberArea() {
		return memberArea;
	}

	public void setMemberArea(String memberArea) {
		this.memberArea = memberArea;
	}

	public String getGcmId() {
		return gcmId;
	}

	public void setGcmId(String gcmId) {
		this.gcmId = gcmId;
	}

}
